home *** CD-ROM | disk | FTP | other *** search
/ Workplace Effectiveness:…ecision-Making Strategies / Workplace Effectiveness: Decision-Making Strategies.iso / pc / Files / Menu4.dxr / 00001_Startup.ls next >
Encoding:
Text File  |  1998-12-16  |  1.1 KB  |  47 lines

  1. global gMasterData, gBlinker, gFlashTime
  2.  
  3. on startMovie
  4.   setModule(gMasterData, #menu4)
  5.   setUserArea(gMasterData, #menu4)
  6.   setBlinker()
  7.   set the keyDownScript to "quitCatcher"
  8.   cursor(0)
  9. end
  10.  
  11. on setBlinker
  12.   repeat with thisArea in [#review, #plan, #eval]
  13.     if not activationOn(gMasterData, thisArea) then
  14.       set gBlinker to thisArea
  15.       exit
  16.     end if
  17.   end repeat
  18.   set gBlinker to #empty
  19. end
  20.  
  21. on blinkSprite
  22.   if gBlinker <> #empty then
  23.     set vNewTime to the ticks
  24.     if vNewTime > gFlashTime then
  25.       case gBlinker of
  26.         #review:
  27.           set upMember to "area1"
  28.           set vFlashSprite to 3
  29.         #plan:
  30.           set upMember to "area2"
  31.           set vFlashSprite to 4
  32.         #eval:
  33.           set upMember to "area3"
  34.           set vFlashSprite to 5
  35.       end case
  36.       set vThisName to the name of member the member of sprite vFlashSprite
  37.       case vThisName of
  38.         upMember:
  39.           set the member of sprite vFlashSprite to member (upMember && "flash")
  40.         (upMember && "flash"):
  41.           set the member of sprite vFlashSprite to member upMember
  42.       end case
  43.       set gFlashTime to the ticks + 60
  44.     end if
  45.   end if
  46. end
  47.